<?php 
include("conn.php");
$id = $_POST['id'];
$name = $_POST['name'];
$result = $_POST['result'];
$sl = $_POST['sl'];
$pz = $_POST['pz'];
$sql="update result set name ='" . $name . "',result = $result,sl = $sl, pz ='$pz' where id = $id";
if ($conn -> query($sql)) {
	echo"修改成功!";
} else {
	echo "Error:" . $sql . "<br>" . $conn -> error;
}
$conn -> close();
?>